package com.u3k.app.mid.utils.net;

import java.util.List;
import java.util.Map;

public class Response {
    byte[] body;
    int code;
    String errMsg;
    Map<String, List<String>> headers;

    public Response(int i, Map<String, List<String>> map, byte[] bArr) {
        this.code = i;
        this.headers = map;
        this.body = bArr;
    }

    public byte[] getBytes() {
        return this.body;
    }

    public int getCode() {
        return this.code;
    }

    public String getErrorMsg() {
        return this.errMsg;
    }

    public String getString() {
        return this.body == null ? null : new String(this.body);
    }

    public Response setBytes(byte[] bArr) {
        this.body = bArr;
        return this;
    }

    public void setErrorMsg(String str) {
        this.errMsg = str;
    }
}
